package main

import (
	"fmt"
	"math"
)

func main() {
	v := 42
	if v >= 0 && v <= math.MaxUint8 {
		v8 := uint8(v)
		fmt.Println("converted:", v8)
	}

	str := "1212"
	if str == "true" || str == "yes" || str == "1" {
		fmt.Println("bool is", true)
	} else if str == "false" || str == "no" || str == "0" {
		fmt.Println("bool is", false)
	} else {
		fmt.Printf("%s is not vaild\n", str)
	}

}
